package controller;

import action.ProcessHistory;
import process.ProcessDispatcher;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.StringProperty;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextField;


import java.net.URL;
import java.util.ResourceBundle;

public class ProcessHistoryController implements Initializable {
    @FXML
    public TableColumn<ProcessHistory, DoubleProperty> Time;
    @FXML
    public TableColumn<ProcessHistory, StringProperty> Process;
    @FXML
    public TableColumn<ProcessHistory, StringProperty> Status;
    @FXML
    public TableColumn<ProcessHistory, StringProperty> Operation;
    @FXML
    public TableColumn<ProcessHistory, StringProperty> Result;
    @FXML
    public TableView<ProcessHistory> ProcessHistoryTable;
    public TextField title;
    private ProcessDispatcher processDispatcher;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        this.processDispatcher=ProcessDispatcher.getInstance();
        this.processDispatcher.setHistoryTableView(ProcessHistoryTable,Result,Operation,Status,Process,Time);
    }
}
